{% extends "base.html" %}
{% block content %}
<h3> Delete Group {{ to_delete }}</h3>
<p>
    Deleting this Group will remove any related objects associated
    with it. These relationships are listed below:
</p>
<div class="danger-zone panel panel-danger">
    <div class="panel-heading">
        <h3>Danger Zone</h3>
    </div>
    {% if rels|length > 1 %}
    <ul class="left">{{ rels|unordered_list }}</ul>
    {% else %}
    <p class="text-center">No relationships found.</p>
    {% endif %}
    <form class="form-horizontal" method="post">
        {% csrf_token %}
        {{ form }}

        <div class="form-group">
            <button class="btn btn-danger" type="submit" name="delete_name" value="delete_user">Delete Group</button>
        </div>
    </form>
</div>
<br/>
<br/>
{% endblock %}
